/*
    This file is part of SQLiteGTK, written by Aly Hirani

    SQLiteGTK is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    SQLiteGTK is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with SQLiteGTK.  If not, see <http://www.gnu.org/licenses/>.
*/

#include "include.h"
#include "main_window_menu_help.h"
#include "about_dialog.h"

void
main_window_menu_help_about_activate_cb(GtkObject *object, gpointer user_data)
{
	GtkBuilder *builder;
	GtkWindow *window;

	g_assert(user_data != NULL);
	
	builder = GTK_BUILDER(user_data);
	g_assert(builder != NULL);
	
	window = GTK_WINDOW(gtk_builder_get_object(builder, "window"));
	g_assert(window != NULL);
	
	create_and_show_about_dialog(window);
}

